<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS_获取对象</title>

</head>
<sctipt>
    window.Unload=function(){
    var liarray=document.getElementsByClassName("li");
    for(let i=0;i<liarray.length;i++){
    liarray.
</sctipt>
<body>
<div id="div1"></div>
<div></div>
<div>

    <form actiion="#">
        <input type="text" name="user">
        <input type="password" name="user">
        <input type="submit" onlick="fun1">

    </form>
</div>
<div>
    <ul>

    </ul>
</div>
</body>
</html>